Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Other initialization properties
This section describes properties that are related to starting objects.
HideOnInit
This
LOGICALproperty is defined for all visual objects and has a default value ofFALSE. If your initialization code sets it toTRUEfor an object before the object is initialized, then that object is initially hidden when it is created. This is an example of a property you can set from a local version ofcreateobjects, after the objects on a page have been created but before theirinitializeObjectcode is run.If you set
HideOnInitfor an object, then you must runviewObjectwhen you want it to appear.DisableOnInit
This
LOGICALproperty is defined for all visual objects and has a default value ofFALSE. If your initialization code sets it toTRUEfor an object before the object is initialized, then that object is initially disabled when it is created. This is another example of a property that you can set from a local version ofcreateobjects, after the objects on a page have been created but before theirinitializeObjectcode is run.If you set
DisableOnInitfor an object ,then you must runenableObjectwhen you want it to appear.ObjectInitialized
This
LOGICALproperty is set toTRUEwhen the object’sinitializeObjectprocedure has been run. You should not set it yourself, but you can check its value to determine whether an object has already been initialized, to avoid running custom initialization code a second time, for example.OpenOnInit
This
LOGICALproperty is defined for data objects whoseQueryObjectproperty isTRUEand has a default value ofTRUE. If you set the value toFALSEbefore the object is initialized, then its query does not open and its temp-table is not populated. If you want the user to enter filter data to reduce the size of the dataset before any rows are returned, you can set theOpenOnInitproperty toFALSE. In this case the application does not needlessly open the query, populate the temp-table, and return the table to the client simply to display the first rows in the table, which the user might not want to see. This is another property that you can set in a localcreateobjects.FolderWindowToLaunch
This
CHARACTERproperty is defined for dynamic browsers. When you define a dynamic browser you can use FolderWindowToLaunch to specify the maintenance window to launch when the user selects a row in the browser. Note that the Folder Window To Launch property does not actually have to be a window with a folder in it. It does need to be a window that expects to receive a key value from the calling window, so that the child window can display the data for that row.Figure 5–3 shows the AppBuilder property sheet for the dynamic browser, where you can set this property.
Figure 5–3: Property Sheet Master
![]()
Your code could also programmatically set this property value at run time if the child window to launch depends on some application particulars.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |